package com.guigu.www.service.Impl;

import com.guigu.www.dao.GzjlMapper;
import com.guigu.www.pojo.Gzjl;
import com.guigu.www.service.GzjlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GzjlServiceImpl implements GzjlService  {
    @Autowired
    private GzjlMapper gzjlMapper;
    @Override
    public List<Gzjl> queryAll() {
        return gzjlMapper.queryAll();
    }

    @Override
    public int xg(Gzjl gzjl) {
        return gzjlMapper.updateByPrimaryKey(gzjl);
    }

    @Override
    public int tj(Gzjl gzjl) {
        return gzjlMapper.insert(gzjl);
    }

    @Override
    public Gzjl querygzjlid(int id) {
        return gzjlMapper.selectByPrimaryKey(id);
    }
}
